
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class AnimationAnimationCfg : public ManualSingleton <AnimationAnimationCfg>
{
	friend ManualSingleton <AnimationAnimationCfg>;
public:
	AnimationAnimationCfg();
	~AnimationAnimationCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const AnimationAnimationCfgInfo *GetAnimationAnimationCfgInfo(int32_t id);
	const AnimationAnimationCfgMap *GetAnimationAnimationCfgMap() { return &m_AnimationAnimationCfgMap; }
private:
	AnimationAnimationCfgMap m_AnimationAnimationCfgMap;
};

#define  g_MakeAnimationAnimationCfgTable() (AnimationAnimationCfg::Instance())
#define  g_GetAnimationAnimationCfgTable() (AnimationAnimationCfg::GetInstance())
#define  g_DelAnimationAnimationCfgTable() (AnimationAnimationCfg::Destroy())